package com.hrms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户表
 *
 * @author LK
 * @since 2021-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysUser extends BasePage implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    private Integer staffId;

    private String userName;

    private String userPwd;

    private String salt;

    private String state;

    ////一对多查询
    //@TableField(exist = false)
    //private List<EmpInformation> empInformation;
    @TableField(exist = false)
    private String newPwd;

    @TableField(exist = false)
    private String newRpPwd;

    @TableField(exist = false)
    private List<SysRole> roleList;
}
